package com.itheiam.servlet;

import com.itheiam.domain.Province;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@WebServlet("/demo/*")
public class DemoServlet extends BaseServlet {
    //遍历所有的省份
    protected void proList(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        List<Province> list = demoService.findAll();
//        resp.getWriter().write("ok");
    }
}
